package four.book.biz.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import four.book.biz.BookBiz;
import four.book.dao.BookMapper;
import four.book.entity.Book;

/**
@author 鏉庡織
@version 1.0
<p>鏃ユ湡锛�018骞�2鏈�7鏃�涓嬪崍8:08:56</p>
*/
@Service
public class BookBizImpl implements BookBiz {

	@Resource
	private BookMapper bookMapper;

	public int deleteByPrimaryKey(Long bookIsbn) {
		 
		return bookMapper.deleteByPrimaryKey(bookIsbn);
	}

	public int insert(Book record) {
		return bookMapper.insert(record);
	}

	public int insertSelective(Book record) {
		 
		return bookMapper.insertSelective(record);
	}

	public Book selectByPrimaryKey(Long bookIsbn) {
		 
		return bookMapper.selectByPrimaryKey(bookIsbn);
	}

	public List<Book> selectbooks() {
	 
		return bookMapper.selectbooks();
	}

	public int updateByPrimaryKeySelective(Book record) {
	 
		return bookMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Book record) {
	 
		return bookMapper.updateByPrimaryKey(record);
	}

	public Book selectbookname(Book record) {
		 
		return bookMapper.selectbookname(record);
	}

	//书籍类别查询10本
	public List<Book> selectcategory(Book record) {
		bookMapper.selectcategory(record);
		return bookMapper.selectcategory(record);
	}
	
	
	
	
}
